import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
// import axios from 'axios';
import App from './App.vue';
import router from './router';
// import config from './config';
import request from './utils/request';
import storage from './utils/storage';
import api from './api';
import store from './store';

// const url = config.mockApi;
// axios.get(`${url}/login`).then((res) => {
//   console.log(res);
// });
const app = createApp(App);
app.use(ElementPlus);
app.use(router);
app.use(store);
// 全局挂载变量
app.config.globalProperties.$request = request;
app.config.globalProperties.$storage = storage;
app.config.globalProperties.$api = api;
app.mount('#app');
